package com.lin.controller;

import com.lin.common.error.CustomRuntimeException;
import com.lin.common.rest.ResMsg;
import com.lin.controller.req.AddQuestionsReqMsg;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.io.IOException;

@RestController
public class AnswersController {
    private static Logger log = LoggerFactory.getLogger(AnswersController.class);

    @ApiOperation("新增更新问题")
    @PostMapping("/questions/save")
    public ResMsg<Integer> save(@Valid @RequestBody AddQuestionsReqMsg reqMsg) throws IOException, CustomRuntimeException {
        //TODO 新增或者补充答案
        return null;
    }
}
